#!/usr/bin/env bash
app_name='mall-admin'
#docker stop ${app_name}
#echo '----stop container----'
#docker rm ${app_name}
#echo '----rm container----'
#docker rmi `docker images | grep mall-admin | awk '{print $3}'`
#echo '----rm none images----'
docker run -p 8080:8080 --name ${app_name} \
--link mysql:db \
--net mall_conf_default \
--link redis:redis \
-v /etc/localtime:/etc/localtime \
-v /mydata/app/${app_name}/logs:/var/logs \
-d mall/${app_name}:1.0-SNAPSHOT
echo '----start container----'